home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / 000345_blitz-list-request_Sat Jun 25 03:26:00 1994.msg < prev    next >
Internet Message Format  |  1994-09-20  |  3KB

  1. Received: from goanna.cs.rmit.oz.au (goanna.cs.rmit.OZ.AU [131.170.24.40]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id DAA17465 for <blitz-list@helsinki.fi>; Sat, 25 Jun 1994 03:25:17 +0300
  2. Received: from yallara.cs.rmit.oz.au (s933384@yallara.cs.rmit.OZ.AU [131.170.24.42]) by goanna.cs.rmit.oz.au (8.6.8/8.6.6) with ESMTP id KAA12363 for <blitz-list@helsinki.fi>; Sat, 25 Jun 1994 10:24:58 +1000
  3. Received: (from s933384@localhost) by yallara.cs.rmit.oz.au (8.6.8/8.6.6) id KAA03973 for blitz-list@helsinki.fi; Sat, 25 Jun 1994 10:24:58 +1000
  4. From: Dave Cole <s933384@yallara.cs.rmit.oz.au>
  5. Message-Id: <199406250024.KAA03973@yallara.cs.rmit.oz.au>
  6. Subject: Re: PowerPACKING
  7. To: blitz-list@helsinki.fi (Blitz)
  8. Date: Sat, 25 Jun 1994 10:24:57 +1000 (EST)
  9. In-Reply-To: <A72EC51FD1@microlnk.ml.ee> from "Ott M. Aaloe" at Jun 22, 94 12:43:08 pm
  10. X-Mailer: ELM [version 2.4 PL23]
  11. MIME-Version: 1.0
  12. Content-Type: text/plain; charset=US-ASCII
  13. Content-Transfer-Encoding: 7bit
  14. Content-Length: 1942      
  15. X-Status: 
  16. Status: RO
  17.  
  18.  
  19. > Hi all!
  20.  
  21. > I badly need some decopression routines so I just wondered is there 
  22. > any lib extensions for blitz which contains some commands to unpack 
  23. > powerpacked data files - something like unpack (filename$,from adr,to 
  24. > adr). Thanx!
  25.  
  26. >                         O.T.T. (ott@microlnk.ml.ee)
  27.  
  28. Well you may like to try the undocumented commands "implode" and
  29. "Deplode".  there syntax is as follows:
  30.  
  31.   IMPLODE: Error/crunched
  32.   length = Implode (Buffer Address, Data Length)
  33.  
  34.   DEPLODE: Success(Buffer Address)
  35.  
  36. The Implode command requires an address in memory to start its
  37. compressions from, and the length of the data you want to pack.
  38. The screen colours will flash during the compression process to let
  39. you know it's working.  If the compression was successful, you'll
  40. be returned the new length of the imploded data, otherwise an error
  41. code.
  42.  
  43. The Deplode command only requires the address in memory that your
  44. compressed data is located at, and it will set to work
  45. uncompressing it.
  46.  
  47. The problem is, the Deplode will expand the data out to its
  48. original length regardless of your buffersize, so it is vital that
  49. you allocate enough memory to hold the uncompressed data length,
  50. not just the size of the compresses data.
  51.  
  52. Most of the time this won;t be a problem, since it will have been
  53. you that created the packed file.  Luckily, the compressed data
  54. stores the expanded length of the data in the second longword of
  55. the file, so it's possible to read this if you are unsure of the
  56. uncompressed data's length.
  57. "
  58.  
  59. The above info, was taken from The Australian Commodore and Amiga
  60. Review, May edition.
  61.  
  62. Dave
  63. -----------------------------------------------------------
  64. Dave Cole                      | Please contact me for info 
  65. s933384@yallara.cs.rmit.oz.au  | about
  66. s933384@minyos.xx.rmit.oz.au   |        The Warhammer 
  67. David_Cole@guru.apana.org.au   |         Compendium
  68. -----------------------------------------------------------